import guiguRequest, { BaseResult } from "@/api/base";

export interface LoginParams{
    username:string,
    password:string

}

export interface LoginResultData{
    username:string,
    token:string
}
export interface LoginResult extends BaseResult<LoginResultData>{
}

export  function login(data:LoginParams):Promise<LoginResult>{
    
    return guiguRequest.post("/login",data)
}